/*
 * Copyright 2019 The ZuSmart Project
 *  
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *  
 *      http://www.apache.org/licenses/LICENSE-2.0
 *  
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.zusmart.base.logging.support;

import org.slf4j.Logger;

/**
 * @author Administrator
 *
 */
public class Slf4JLogger extends AbstractLogger {

	private static final long serialVersionUID = 4424989098097896462L;

	private final transient Logger logger;

	public Slf4JLogger(Logger logger) {
		super(logger.getName());
		this.logger = logger;
	}

	@Override
	public boolean isTraceEnabled() {
		return this.logger.isTraceEnabled();
	}

	@Override
	public boolean isDebugEnabled() {
		return this.logger.isDebugEnabled();
	}

	@Override
	public boolean isInfoEnabled() {
		return this.logger.isInfoEnabled();
	}

	@Override
	public boolean isWarnEnabled() {
		return this.logger.isWarnEnabled();
	}

	@Override
	public boolean isErrorEnabled() {
		return this.logger.isErrorEnabled();
	}

	@Override
	public void trace(String msg) {
		this.logger.trace(msg);
	}

	@Override
	public void trace(String msg, Object arg) {
		this.logger.trace(msg, arg);
	}

	@Override
	public void trace(String msg, Object argA, Object argB) {
		this.logger.trace(msg, argA, argB);
	}

	@Override
	public void trace(String msg, Object... args) {
		this.logger.trace(msg, args);
	}

	@Override
	public void trace(String msg, Throwable cause) {
		this.logger.trace(msg, cause);
	}

	@Override
	public void debug(String msg) {
		this.logger.debug(msg);
	}

	@Override
	public void debug(String msg, Object arg) {
		this.logger.debug(msg, arg);
	}

	@Override
	public void debug(String msg, Object argA, Object argB) {
		this.logger.debug(msg, argA, argB);
	}

	@Override
	public void debug(String msg, Object... args) {
		this.logger.debug(msg, args);
	}

	@Override
	public void debug(String msg, Throwable cause) {
		this.logger.debug(msg, cause);
	}

	@Override
	public void info(String msg) {
		this.logger.info(msg);
	}

	@Override
	public void info(String msg, Object arg) {
		this.logger.info(msg, arg);
	}

	@Override
	public void info(String msg, Object argA, Object argB) {
		this.logger.info(msg, argA, argB);
	}

	@Override
	public void info(String msg, Object... args) {
		this.logger.info(msg, args);
	}

	@Override
	public void info(String msg, Throwable cause) {
		this.logger.info(msg, cause);
	}

	@Override
	public void warn(String msg) {
		this.logger.warn(msg);
	}

	@Override
	public void warn(String msg, Object arg) {
		this.logger.warn(msg, arg);
	}

	@Override
	public void warn(String msg, Object argA, Object argB) {
		this.logger.warn(msg, argA, argB);
	}

	@Override
	public void warn(String msg, Object... args) {
		this.logger.warn(msg, args);
	}

	@Override
	public void warn(String msg, Throwable cause) {
		this.logger.warn(msg, cause);
	}

	@Override
	public void error(String msg) {
		this.logger.error(msg);
	}

	@Override
	public void error(String msg, Object arg) {
		this.logger.error(msg, arg);
	}

	@Override
	public void error(String msg, Object argA, Object argB) {
		this.logger.error(msg, argA, argB);
	}

	@Override
	public void error(String msg, Object... args) {
		this.logger.error(msg, args);
	}

	@Override
	public void error(String msg, Throwable cause) {
		this.logger.error(msg, cause);
	}

}